package com.yuntian.mapper;


import com.yuntian.entity.StaffMaster;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface StaffMasterMapper {

    /**
     * 登录
     * @param staffCode 员工代码
     * @param password 密码
     * @return 员工信息
     */
    @Select("select * from M003 where m00301 = #{staffCode} and m00303 = #{password} and m00304 = #{departmentCode}")
    StaffMaster login(String staffCode, String password, String departmentCode);
}
